package com.zys.exercise;

import java.io.FileOutputStream;
import java.io.IOException;

public class text2 {
    public static void main(String[] args) throws IOException {
        FileOutputStream fs = new FileOutputStream("4-23\\text1");
//        fs.write(97);
//        byte[] b = {97,98,99,100};
        String s = "afsd";
        byte[] bytes = s.getBytes();
        fs.write(bytes);
        String s1 = "\r\n";
        byte[] bytes1 = s1.getBytes();
        fs.write(bytes1);
        String s2 = "666";
        byte[] bytes2 = s2.getBytes();
        fs.write(bytes2);



        fs.close();
    }
}
